var passport =require('passport');
var BasicStrategy =require('passport-http').BasicStrategy
var passportJwt = require('passport-jwt');
var JwtStrategy =passportJwt.JwtStrategy
var ExtractJwt =passportJwt.ExtractJwt
var models =require('../models/models')
var secret =require('./passport_jwt')

require('./passport_jwt')(passport)
require('./passport_http')(passport)


var auth = {}

auth.basic = () => passport.authenticate('basic', { session: false })

auth.jwt = () => passport.authenticate('jwt', { session: false })

module.exports = auth;